Inheritance and Delegation
You can use AppleScript's inheritance mechanism to define related script objects in terms of one another. This allows you to share property and handler definitions among many script objects without repeating the shared definitions. Inheritance and delegation are described in the following sections.
-
Defining Inheritance
describes how to a define a script object that inherits properties and handlers from another script object.
-
How Inheritance Works
demonstrates inheritance in the relationships between several parent-child scripts.
-
The Continue Statement
describes how to extend the behavior of an inherited handler without completely replacing it.
© 1999 Apple Computer, Inc. – (Last Updated 21 May 99)